package com.example.leetcode.stack;

import com.example.leetcode.stack.common.StackUtils;

import java.util.Arrays;

class Solution496 {
    public int[] nextGreaterElement(int[] nums1, int[] nums2) {
        return StackUtils.nextGreaterElement(nums1, nums2);
    }
}

public class leetcode496 {
    public static void main(String[] args) {
        Solution496 solution496 = new Solution496();
        int[] nums1 = {4, 1, 2};
        int[] nums2 = {1, 3, 4, 2};
        System.out.println(Arrays.toString(solution496.nextGreaterElement(nums1, nums2)));
    }
}
